package com.wss.day02.test05;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/21
 */
public class Goods {
    private String name;
    private double price;
    private int quantity;
    private String description;

    public Goods(String name, double price, int quantity, String description) {
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.description = description;
    }


    public void showInfo() {
        System.out.println("商品信息：");
        System.out.println("名称：" + name);
        System.out.println("价格：" + price);
        System.out.println("数量：" + quantity);
        System.out.println("描述：" + description);
    }


    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    public int getQuantity() {
        return quantity;
    }

    public String getDescription() {
        return description;
    }
}
